package com.ruoyi.web.controller.pc.points;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.page.PageUtils;
import com.ruoyi.web.domain.PoiApply;
import com.ruoyi.web.domain.vo.QueryVo;
import com.ruoyi.web.service.IPoiApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/points/poiApplyReexamine")
public class PoiApplyReexamineController extends BaseController {

    @Autowired
    private IPoiApplyService poiApplyService;



    @PreAuthorize("@ss.hasPermi('points:poiApplyReexamine:list')")
    @GetMapping("/list")
    public TableDataInfo list(QueryVo queryVo) {
        queryVo.setQStatus(300);
        PageUtils page = poiApplyService.listByPage(queryVo);
        return getDataTable(page);
    }


    @PreAuthorize("@ss.hasPermi('points:poiApplyReexamine:poiApplyReexamine')")
    @PostMapping("/poiApplyReexamine")
    public AjaxResult poiApplyReexamine(@RequestBody PoiApply poiApply) {
        poiApplyService.poiApplyReexamine(poiApply);
        return toAjax(1);
    }
}

